package com.health.crm;

import com.health.common.swagger.annotation.EnableHealthSwagger2;
import com.health.core.annotation.EnableHealthAop;
import com.health.crm.sys.config.CrmEnterpriseConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootApplication
@EnableDiscoveryClient
@EnableHealthSwagger2
@EnableHealthAop
public class HealthCrmApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(HealthCrmApplication.class);
    }

    @Autowired
    CrmEnterpriseConfigService crmEnterpriseConfigService;

    @Override
    public void run(String... args) throws Exception {
        // TODO 企业初始化信息
        crmEnterpriseConfigService.initialize();

    }

}
